home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / div.man < prev    next >
Encoding:
Text File  |  1989-08-12  |  1.5 KB  |  69 lines

  1.  
  2.  
  3.  
  4. div                       User Commands                       div
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NNAAMMEE
  11.      div, ldiv - Return quotient and remainder from division
  12.  
  13. SSYYNNOOPPSSIISS
  14.      ##iinncclluuddee <<ssttddlliibb..hh>>
  15.  
  16.      ddiivv__tt
  17.      ddiivv((_n_u_m_e_r, _d_e_n_o_m))
  18.  
  19.      llddiivv__tt
  20.      llddiivv((_n_u_m_e_r, _d_e_n_o_m))
  21.  
  22. AARRGGUUMMEENNTTSS
  23.      int       _n_u_m_e_r          (in)      Numerator for division.
  24.  
  25.      int       _d_e_n_o_m          (in)      Denominator for division.
  26.  
  27. _________________________________________________________________
  28.  
  29.  
  30. DDEESSCCRRIIPPTTIIOONN
  31.      The ddiivv and llddiivv procedures divide _n_u_m_e_r by _d_e_n_o_m and return
  32.      both  the quotient and remainder, in the qquuoott and rreemm fields
  33.      of the result structure.  If the division  is  inexact,  the
  34.      sign of the resulting quotient is that of the algebraic quo-
  35.      tient, and the magnitude of the resulting  quotient  is  the
  36.      largest  integer  less  than  the magnitude of the algebraic
  37.      quotient.
  38.  
  39.      DDiivv takes iinntt arguments and produces iinntt results, while llddiivv
  40.      works with lloonngg iinntt arguments and results.
  41.  
  42.  
  43. KKEEYYWWOORRDDSS
  44.      divide, quotient, remainder
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. Sprite v.1.0        Printed:  August 12, 1989                   1
  66.  
  67.  
  68.  
  69.